package valve_test.drawning;

import java.awt.*;

/**
 * Created with IntelliJ IDEA.
 * User: Shinigami
 * Date: 10.07.14
 * Time: 10:38
 * To change this template use File | Settings | File Templates.
 */
public class visual {
    private int v_id;
    private String v_name;
    private int v_type;      //1 - сливная, 2 - вентиль, 3 -наливная
    private String[] mas_in;
    private int[] mas_out;
    private Point level;
    private boolean v_state;

    public visual(){
        v_id = 0;
        v_name = null;
        v_type = 0;
        mas_in = null;
        mas_out = null;
        level = new Point();
        v_state = false;
    }

    public visual(visual v){
        v_id = v.getV_id();
        v_name = v.getV_name();
        v_type = v.getV_type();
        mas_in = v.getMas_in();
        mas_out = v.getMas_out();
        level = v.getLevel();
        v_state = v.getV_state();
    }

    public int getV_id() {
        return v_id;
    }

    public void setV_id(int v_id) {
        this.v_id = v_id;
    }

    public String getV_name() {
        return v_name;
    }

    public void setV_name(String v_name) {
        this.v_name = v_name;
    }

    public int getV_type() {
        return v_type;
    }

    public void setV_type(int v_type) {
        this.v_type = v_type;
    }

    public String[] getMas_in() {
        return mas_in;
    }

    public void setMas_in(String[] mas_in) {
        this.mas_in = mas_in;
    }

    public int[] getMas_out() {
        return mas_out;
    }

    public void setMas_out(int[] mas_out) {
        this.mas_out = mas_out;
    }

    public boolean getV_state() {
        return v_state;
    }

    public void setV_state(boolean v_state) {
        this.v_state = v_state;
    }

    public Point getLevel() {
        return level;
    }

    public void setLevel(Point level) {
        this.level.x = level.x;
        this.level.y = level.y;
    }
}
